<?php namespace Common\Model;

use Hdphp\Model\Model;


class Attri extends Model{
	
	protected $table = "type_attribute";
	
	protected $validate = array(
	
	array('taname','required','属性名称不能为空',3,3),
//	array('tavalue','required','属性值不能为空',3,3),
	
	);
	
	public function addData(){
		if(!$this->create()) return false;
		$this->add();
		return true;
		
	}
	
	public function editData(){
		if(!$this->create()) return false;
		$this->save();
		return true;
	}
} 



 ?>